package cn.yunhe.dao.impl;

import cn.yunhe.dao.IBlockDao;
import cn.yunhe.entity.Block;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

@Repository("blockDao")
public class BlockDaoImpl extends HibernateDaoSupport implements IBlockDao {

    @Override
    public Block getBlock(int id) {
        return getHibernateTemplate().get(Block.class, id);
    }
}
